<!-- Author:Rain -->
<template>
  <div class="sub-li">
      <a :href="jobInfo.detailUrl"
          ka="rcmd_list_job_0" class="job-info" target="_blank">
          <div class="sub-li-top">
              <p class="name">{{jobInfo.name}}</p>
              <div class="guide-app-download-icon" data-isfriend="false" data-bossid="8cbd8dabdde5a5940Hd_3N26FVo~"
                  data-securityid="nlm2fBRKe3HLz-m1Im6DpjN3IgfHMsRjWaL1kVU-Ho-u434qyfHl6mCnoLudObXjzPTRM37MwOJIqUWwz3VZF7u51KBhPWb7wITo9yg3Ba3hrsEgZIjv6UrtrkxKuEbyDBSTndSbuyYTYrfeprXbOm9C8019E3BG8BQHVGjfXrNsjiin78oEnaAsi_lG">
              </div>
              <p class="salary">{{jobInfo.salary}}</p>
          </div>
          <p class="job-text"><span v-for="item,index in tag" :key="index">{{ item }}</span></p>
      </a>
      <div class="sub-li-bottom">
          <a :href="bossInfo.url" ka="rcmd_list_company_0"
              class="user-info" target="_blank">
              <p>
                  <img
                      :src="bossInfo.logoPic">
                  <span class="name">{{bossInfo.name}}</span>
              </p>
              <div class="sub-li-bottom-commany-place">
                  <i class="job-card-location"></i><span class="name">{{ bossInfo.location }}</span>
              </div>
          </a>
      </div>
  </div>
</template>

<script setup lang="ts">
import { defineProps,toRefs } from 'vue';
const props=defineProps(["job"])
let {jobInfo,bossInfo,tag}=toRefs(props.job)


</script>

<style scoped>
li .sub-li {
  height: 136px;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: all .2s linear;
  display: block;
  width: 384px;
  font-size: 0;
  box-sizing: border-box;
  box-shadow: 0 0 6px grey;
}

li .sub-li .job-info {
  padding: 16px 20px;
  box-sizing: border-box;
  width: 100%;
  vertical-align: middle;
}

li a {
  display: inline-block;
}

li .sub-li .sub-li-top {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  width: 100%;
}

li .sub-li .sub-li-top .name {
  color: #222;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  transition: all .2s linear;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
  position: relative;
  max-width: 160px;
}

li .sub-li .sub-li-top .guide-app-download-icon {
  width: 16px;
  height: 16px;
  background: url(https://img.bosszhipin.com/static/file/2022/tfguyqkgkb1651743005056.png) 0 -16px/16px auto no-repeat;
  display: inline-flex;
}

li .sub-li .sub-li-top .salary {
  font-size: 16px;
  font-weight: 500;
  color: #fe574a;
  line-height: 22px;
  flex: 1;
  text-align: right;
  max-width: none;
}

li .salary {
  color: #fc6c38;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

li a.job-info p.job-text {
  font-size: 13px;
  color: #8d92a1;
  padding-right: 0;
  line-height: normal;
  height: 22px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-info .job-text span {
  display: inline-block;
  height: 18px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 18px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #f8f8f8;
}

.job-info .job-text span+span {
  /* 第二个span标签 */
  margin-left: 8px;
}

li .sub-li .sub-li-bottom {
  background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
  margin-top: 0;
  padding-top: 0;
  display: block;
  border: none;
}

.sub-li-bottom a.user-info {
  margin: 0;
  padding-top: 12px;
}

.sub-li-bottom a {
  height: 24px;
  display: block;
  padding: 12px 20px;
}

li p {
  line-height: 35px;
  font-size: 16px;
  color: #61687c;
  position: relative;
}

.user-info p {
  display: inline-block;
  font-size: 14px;
  width: auto;
  padding-right: 0;
  border-radius: 4px;
  line-height: normal;
}

.sub-li-bottom p {
  border: none;
  float: left;
  line-height: 24px;
  height: 24px;
}

.sub-li-bottom .user-info img {
  width: 24px;
  height: 24px;
  margin-right: 0;
  vertical-align: middle;
  border: none;
  border-radius: 4px;
}

li .sub-li .sub-li-bottom .name {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  height: 24px;
  line-height: 24px;
  color: #666;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  transition: all .2s linear;
}

li .sub-li .sub-li-bottom .sub-li-bottom-commany-place {
  float: right;
  font-size: 13px;
  color: #666;
  height: 24px;
  line-height: 24px;
}

li .sub-li .sub-li-bottom .sub-li-bottom-commany-place .job-card-location {
  display: inline-block;
  width: 10px;
  height: 12px;
  background: url(../images/job-card-location.png) no-repeat;
  background-size: 100% 100%;
  vertical-align: middle;
}

li .sub-li .sub-li-bottom .sub-li-bottom-commany-place .name {
  margin-left: 2px;
  color: #61687c;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  vertical-align: middle;
  display: inline-block;
  height: 24px;
  line-height: 24px;
  transition: all .2s linear;
}
</style>